<?php
header("Content-Type: text/html; charset=utf-8");
//if(sha1(date("Y-m-d").'*^&$')==$_GET['key']){
	require_once '../baseClasses/config_ser.php';
	//require_once '../baseClasses/config_loc.php';
	require_once '../baseClasses/dbConn.php';
	$db = new dbConn();
	$table = isset($_GET['t'])? ( ($_GET['t']=='nomal')?'category': ( ($_GET['t']=='9point9')?'category99': ( ($_GET['t']=='19point9')?'category199':'category' ) ) ) :'category';
	
	$db->sql = "SELECT id,cate,css FROM {$table} ORDER BY sort";
	$cate = $db->doResultList2();
	echo json_encode($cate);
//}
?>